#ifndef __AS_SCR_MAIN_H__
#define __AS_SCR_MAIN_H__
#include "ASScreen.h"
#include "..\control\ASButton.h"
#include "..\control\ASAdvbar.h"
#include "..\control\ASFilledArea.h"
#include "..\control\ASTableBar.h"

typedef void(*btn_cb)(void);
typedef struct
{
    as_screen base;
    as_button* btn_view;
    as_button* btn_process;
    as_button* btn_more;
    as_filled_area* fa_head;
    as_button* btn_all;
    as_button* btn_categories;
    as_button* btn_favorite;
    as_button* btn_mood;
    as_button* btn_recent;
    as_button* btn_todo;
    as_button* btn_tried;
    as_button* btn_untried;
    as_button* btn_random;
    as_advbar* adv_p;
    as_tablebar* tab;
    ASINT head_height;
    ASINT cur_tab;
} as_main_screen;

typedef struct
{
    ASSTR img_u;
    ASSTR img_d;
    ASSTR strid;
    btn_cb cb;
} as_main_bt;

void as_scr_main_init(as_screen* screen_p);
void as_scr_main_deinit(as_screen* screen_p);
void as_scr_main_show(void);
#endif